package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Enshrine;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EnshrineMapper {
    
    int deleteByPrimaryKey(@Param("userId") Long userId, @Param("dailyId") Long dailyId);

    int insert(Enshrine record);

    Enshrine selectByPrimaryKey(Long id);

    List<Enshrine> selectAll();

    int updateByPrimaryKey(Enshrine record);

    int selectForHave(@Param("userId") Long userId, @Param("dailyId") Long dailyId);

    List<Enshrine> selectMy(Long userId);
}